package lv.abvs.pojekts;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Schedule {
	
	
	private Schedule instance;
	
	private int numWeeks;
	
	private Date firstDate;
	
	private Schedule(int numWeeks1,String firstDate1) throws ParseException {
		// padod datumu "2010-01-04"
		// jaapieshkjir 
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		firstDate = sdf.parse(firstDate1);
		
	}
	
	public String printSchedule() {
		return "Mācību plāns " + numWeeks + " nedēļām, sākas " + firstDate;
	}
	
	public Schedule getInstance() {
		return instance;
	}
	
	public static void main(String [] args) throws ParseException {
		System.out.println("Hello");
		System.out.println(2+19);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		Date d = sdf.parse("2010-01-04");
		System.out.println(d);
		
	}


}
